package com.yanqu.road.entity.union.huaben.server;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_hua_ben_patrons", desc = "商会话本-门客数据")
public class UnionHuaBenPatronsData extends DataObject {

    @FieldTypeAnnotation(select = true, desc = "玩家ID", update = true)
    private long userId;

    @FieldTypeAnnotation(desc = "门客id", update = true)
    private int patronsId;

    @FieldTypeAnnotation(desc = "派遣次数")
    private int sendTimes;

    @FieldTypeAnnotation(desc = "重置时间")
    private int resetTime;

    @FieldTypeAnnotation(desc = "周id")
    private int weekId;


    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if(this.userId != userId) {
            this.userId = userId;
            setUpdateOption();
        }
    }

    public int getPatronsId() {
        return patronsId;
    }

    public void setPatronsId(int patronsId) {
        if(this.patronsId != patronsId) {
            this.patronsId = patronsId;
            setUpdateOption();
        }
    }

    public int getSendTimes() {
        return sendTimes;
    }

    public void setSendTimes(int sendTimes) {
        if(this.sendTimes != sendTimes) {
            this.sendTimes = sendTimes;
            setUpdateOption();
        }
    }

    public int getResetTime() {
        return resetTime;
    }

    public void setResetTime(int resetTime) {
        if(this.resetTime != resetTime) {
            this.resetTime = resetTime;
            setUpdateOption();
        }
    }

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        if(this.weekId != weekId) {
            this.weekId = weekId;
            setUpdateOption();
        }
    }
}
